<?php

class Main extends CI_Controller{

	function __construct(){
		parent::__construct();
		$this->user_authentication->validation('homepage/login', 'member');
	}

	function index(){
		$this->data = $this->session->userdata('member');
		$this->data['title'] = 'Dashboard';
		$this->load->view('dashboard/main', $this->data);
	}
	
	function get_request(){
		$this->library->request_token();
	}
	
	function do_signout(){
		$this->session->sess_destroy();
		redirect('homepage/main');
	}
}
?>